#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}


# copy sql
echo "begin copy sql "
cp ../sql/ry_20231130.sql ./mysql/db
cp ../sql/ry_config_20231204.sql ./mysql/db

# copy html
echo "begin copy html "
cp -r ../kwzjx-ui/dist/** ./nginx/html/dist


# copy jar
echo "begin copy kwzjx-gateway "
cp ../kwzjx-gateway/target/kwzjx-gateway.jar ./kwzjx/gateway/jar

echo "begin copy kwzjx-auth "
cp ../kwzjx-auth/target/kwzjx-auth.jar ./kwzjx/auth/jar

echo "begin copy kwzjx-visual "
cp ../kwzjx-visual/kwzjx-monitor/target/kwzjx-visual-monitor.jar  ./kwzjx/visual/monitor/jar

echo "begin copy kwzjx-modules-system "
cp ../kwzjx-modules/kwzjx-system/target/kwzjx-modules-system.jar ./kwzjx/modules/system/jar

echo "begin copy kwzjx-modules-file "
cp ../kwzjx-modules/kwzjx-file/target/kwzjx-modules-file.jar ./kwzjx/modules/file/jar

echo "begin copy kwzjx-modules-job "
cp ../kwzjx-modules/kwzjx-job/target/kwzjx-modules-job.jar ./kwzjx/modules/job/jar

echo "begin copy kwzjx-modules-gen "
cp ../kwzjx-modules/kwzjx-gen/target/kwzjx-modules-gen.jar ./kwzjx/modules/gen/jar

